package demo1;

import java.awt.*;

public class demo6 {
    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(()->{
            while (true) {

            }
        });
        t.start();
        t.join(20000);
        System.out.println("main end");
    }
}
